package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description 船只等级变更日志
 */
@FieldTypeAnnotation(tableName = "t_c_activity_peakseacraft_ship_log")
public class LogPeakSeacraftShip {
    @FieldTypeAnnotation(desc = "活动id",update = true,select = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "商会id",update = true,select = true)
    private String unionId;
    @FieldTypeAnnotation(desc = "海域 ")
    private int area;
    @FieldTypeAnnotation(desc = "分组")
    private int groupNum;
    @FieldTypeAnnotation(desc = "原来等级")
    private long oldLevel;
    @FieldTypeAnnotation(desc = "新的等级")
    private long newLevel;
    @FieldTypeAnnotation(desc = "捐献数据")
    private Map<Integer, Long> donationShipMap = new HashMap<>();
    @FieldTypeAnnotation(desc = "时间 ms")
    private long time;

    public LogPeakSeacraftShip(int activityId, String unionId, long oldLevel, long newLevel, Map<Integer, Long> donationShipMap, long time, int area, int group) {
        this.activityId = activityId;
        this.unionId = unionId;
        this.oldLevel = oldLevel;
        this.newLevel = newLevel;
        this.donationShipMap = donationShipMap;
        this.time = time;
        this.area = area;
        this.groupNum = group;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public long getOldLevel() {
        return oldLevel;
    }

    public void setOldLevel(long oldLevel) {
        this.oldLevel = oldLevel;
    }

    public long getNewLevel() {
        return newLevel;
    }

    public void setNewLevel(long newLevel) {
        this.newLevel = newLevel;
    }

    public Map<Integer, Long> getDonationShipMap() {
        return donationShipMap;
    }

    public void setDonationShipMap(Map<Integer, Long> donationShipMap) {
        this.donationShipMap = donationShipMap;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public int getArea() {
        return area;
    }

    public void setArea(int area) {
        this.area = area;
    }

    public int getGroupNum() {
        return groupNum;
    }

    public void setGroupNum(int groupNum) {
        this.groupNum = groupNum;
    }
}
